package com.csun.cmny.provider.model.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ServiceOrderDto implements Serializable {

    /**
     * 工单来源 1-app下单 2-平台下单 3-政府下单
     */
    private Integer orderSource;



    /**
     * 下单人电话
     */
    @NotEmpty(message = "{service.order.userPhone.null}")
    private String userPhone;

    /**
     * 老人id
     */
    @NotNull(message = "{MedicationPlan.oldman.id.notnull}")
    private Long oldmanId;


    /**
     * 商家id
     */
    @NotNull(message = "{merchandise.merchantId.null}")
    private Long merchantId;


    /*预约服务时间*/
    @NotEmpty(message = "{service.order.serviceSubscribeTime.null}")
    private String serviceSubscribeTime;

    /*配送详细地址*/
    @NotEmpty(message = "{order.detailedAddress.null}")
    private String detailedAddress;

    /*配送地址百度地图经度*/
    @NotEmpty(message = "{order.longitude.null}")
    private String longitude;

    /*配送地址百度地图纬度*/
    @NotEmpty(message = "{order.latitude.null}")
    private String latitude;

    /**
     * 备注
     */
    private String remark;

    /**
     * 组织Id
     */
    private Long groupId;

    /*
    *
    * */
    private List<ServiceOrderItemDto> serviceOrderItemList;


}
